package chat.UserDto;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.revery.api.entity.chat.BaseLogChat;

import java.util.List;

/**
 * @author denghao
 * @title
 * @package
 * @date 2020/1/3 11:34
 */
public interface LogChatDto extends JpaRepository<BaseLogChat,Long>,JpaSpecificationExecutor<BaseLogChat> {
    List<BaseLogChat> findByToAccount(String toAccount);

    List<BaseLogChat> findByToAccountAndFromAccount(String toAccount, String fromAccount);
}
